<template>
  <div style="padding-bottom: 30px">
    <el-empty description="你访问的页面不存在">
      <el-button @click="router.push(path)">{{ name }}</el-button>
    </el-empty>
  </div>
</template>

<script lang="ts" setup>
import { onMounted, ref } from "vue";
import { useRouter } from "vue-router";
const router = useRouter();
var path = ref<any>("");
var name = ref<any>("");
onMounted(() => {
  path.value = localStorage.getItem("path");
  name.value = localStorage.getItem("pathName");
});
</script>
